package com.ymatou.social.api.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.social.api.parameter.GetUserCollectionNoteListBean;
import com.ymatou.social.api.service.GetUserCollectionNoteListCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;

/**
 * 个人主页-收藏日记列表接口 FreeMaker Template自动生成代码
 */
@TestSuite
public class Ts_GetUserCollectionNoteList {
	private static GetUserCollectionNoteListBean UserCollectionNoteListBean;
	private static GetUserCollectionNoteListCall UserCollectionNoteListCall;

	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("个人主页-收藏日记列表接口");
	}

	@Before
	public void caseUp() {
		UserCollectionNoteListBean = new GetUserCollectionNoteListBean();
		UserCollectionNoteListCall = new GetUserCollectionNoteListCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(UserCollectionNoteListCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetUserCollectionNoteList_001() {
		Logger.start(true,"获取收藏日记列表日记成功");
		try {
			// userId=1113&NoteId=1&NoteId=2&NoteId=56
			String noteIds = "1";
			UserCollectionNoteListBean.setUserId(1113);
			UserCollectionNoteListBean.setNoteId(noteIds);
			// UserCollectionNoteListCall.setData(UserCollectionNoteListBean);
			UserCollectionNoteListCall.setData("userId=1113&NoteId=1&NoteId=2&NoteId=56");
			UserCollectionNoteListCall.callService();
			Logger.comment("收藏日记列表日记 call" + UserCollectionNoteListCall.getEntityString());
			Logger.comment("收藏日记列表日记 response" + UserCollectionNoteListCall.getReturnData());
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}